package com.zenithsun.pic.picreview.service;

import java.util.HashMap;

import com.syzg.common.service.BaseService;
import com.syzg.core.page.PageResult;
import com.zenithsun.pic.picreview.model.PicReview;
import com.zenithsun.pic.picsubject.model.Picsubject;

public interface PicReviewService extends BaseService<PicReview> {
	
	/**
	 * 新增意见
	 * @param ps
	 * @param toCheck 是否提交审核
	 * @return
	 * @throws Exception
	 */
	public boolean addReview(Picsubject ps, boolean toCheck) throws Exception;
	/**
	 * 保存意见
	 * @param ps
	 * @param toCheck 是否提交审核
	 * @return
	 * @throws Exception
	 */
	public boolean saveReview(Picsubject ps, boolean toCheck) throws Exception;
	
	/**
	 * 查询审核图片库
	 * @param pageNo 当前页
	 * @param pageSize 也行数
	 * @param searchCondition
	 * @return
	 * @throws Exception
	 */
	public PageResult queryPicSubjectByState(int pageNo, int pageSize, PicReview searchCondition) throws Exception;
	
	public HashMap<String, String> findPicReview(String id) throws Exception;
	
}